package com.ccys.db.vo.app.splashscreen;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @program: WhiteCoat
 * @description: 获取药物集合的返回Vo
 * @author: ZhangJingCan
 * @create: 2024-01-16 10:16
 **/

@Data
public class GetMedicationVo {

    private String id;//tbl_product
    private String name;//tbl_product name 两个表都找
    private BigDecimal price;//tbl_product price 两个表都找
    private Integer quantity;//tbl_product  qty_remain_in_stock 实际可用库存
    @JsonProperty("drug_code_name")
    private String drugCodeName;//tbl_product drug_code判断:1:general medication;2:Antibiotics;3:Controlled;4:Supplies/Others
    @JsonProperty("drug_code_color")
    private String drugCodeColor;//1:green 2:yellow 3:red 4:blue
    private String dosage;//null
    @JsonProperty("unit_dosage_formm")
    private String unitDosageFormm;//null
    @JsonProperty("recommended_dosage")
    private String recommendedDosage;//tbl_product  recommended_dosage
    @JsonProperty("recommended_frequency")
    private String recommendedFrequency;//tbl_product  recommended_frequency
    @JsonProperty("recommended_no_of_tables")
    private String recommendedNoOfTables;//推荐tablets(此字段先不管)
    private String remarks;//tbl_product  remarks
    @JsonProperty("per_tablet_dosage")
    private BigDecimal perTabletDosage;//packNum

    //===============================
    @JsonProperty("formulation_name")
    private String formulationName;//用flId关联tbl_formulation查询name
    @JsonProperty("route_doctor_name")
    private String routeDoctorName;//用rd_id关联tbl_formulation_route_doctor
    @JsonProperty("route_patient_name")
    private String routePatientName;//用rp_id关联tbl_formulation_route_patient
    @JsonProperty("unit_quantity_type_id")
    private String unitQuantityTypeId;//quantity_id
    @JsonProperty("unit_quantity_type_name")
    private String unitQuantityTypeName;//用quantity_id关联tbl_formulation_quantity_type,然后通过tbl_formulation_quantity_type表的uom_id连unit_of_measurement取name
    @JsonProperty("MDMedication_disp_order")
    private Integer MDMedicationDispOrder;//tbl_product  disp_order
    @JsonProperty("is_partner")
    private Integer isPartner;//本药房表pharmacy_group_id  不为空就是1 为空就是0
    @JsonProperty("is_package")
    private Integer isPackage;//意思是此接口还要查询所有的类型为medication的tbl_package,如果是package的话就是1，否则是0
    @JsonProperty("take_complete_course")
    private Integer takeCompleteCourse;//tbl_product  take_complete_course
    private Integer prn;//tbl_product  prn
    @JsonProperty("what_is_for")
    private String whatIsFor;//tbl_product  what_is_for
    @JsonProperty("may_cause_drowsiness")
    private Integer mayCauseDrowsiness;//tbl_product  may_cause_drowsiness
    @JsonProperty("any_other_precautions")
    private String anyOtherPrecautions;//tbl_product  any_other_precautions
    @JsonProperty("quantity_in_box_packet")
    private String quantityInBoxPacket;//tbl_product  pack_num
    private Integer type;//type_id 有值就取，没值就给0
    @JsonProperty("country_id")
    private String countryId;//tbl_product  country_id 两个表都找

}
